//
//	GetComPanyCultureCodeList.m
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport



#import "GetComPanyCultureCodeList.h"

NSString *const kGetComPanyCultureCodeListLabelCode = @"labelCode";
NSString *const kGetComPanyCultureCodeListLabelName = @"labelName";
NSString *const kGetComPanyCultureCodeListTypeCode = @"typeCode";

@interface GetComPanyCultureCodeList ()
@end
@implementation GetComPanyCultureCodeList




/**
 * Instantiate the instance using the passed dictionary values to set the properties values
 */

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
	self = [super init];
	if(![dictionary[kGetComPanyCultureCodeListLabelCode] isKindOfClass:[NSNull class]]){
		self.labelCode = dictionary[kGetComPanyCultureCodeListLabelCode];
	}	
	if(![dictionary[kGetComPanyCultureCodeListLabelName] isKindOfClass:[NSNull class]]){
		self.labelName = dictionary[kGetComPanyCultureCodeListLabelName];
	}	
	if(![dictionary[kGetComPanyCultureCodeListTypeCode] isKindOfClass:[NSNull class]]){
		self.typeCode = dictionary[kGetComPanyCultureCodeListTypeCode];
	}	
	return self;
}


/**
 * Returns all the available property values in the form of NSDictionary object where the key is the approperiate json key and the value is the value of the corresponding property
 */
-(NSDictionary *)toDictionary
{
	NSMutableDictionary * dictionary = [NSMutableDictionary dictionary];
	if(self.labelCode != nil){
		dictionary[kGetComPanyCultureCodeListLabelCode] = self.labelCode;
	}
	if(self.labelName != nil){
		dictionary[kGetComPanyCultureCodeListLabelName] = self.labelName;
	}
	if(self.typeCode != nil){
		dictionary[kGetComPanyCultureCodeListTypeCode] = self.typeCode;
	}
	return dictionary;

}

/**
 * Implementation of NSCoding encoding method
 */
/**
 * Returns all the available property values in the form of NSDictionary object where the key is the approperiate json key and the value is the value of the corresponding property
 */
- (void)encodeWithCoder:(NSCoder *)aCoder
{
	if(self.labelCode != nil){
		[aCoder encodeObject:self.labelCode forKey:kGetComPanyCultureCodeListLabelCode];
	}
	if(self.labelName != nil){
		[aCoder encodeObject:self.labelName forKey:kGetComPanyCultureCodeListLabelName];
	}
	if(self.typeCode != nil){
		[aCoder encodeObject:self.typeCode forKey:kGetComPanyCultureCodeListTypeCode];
	}

}

/**
 * Implementation of NSCoding initWithCoder: method
 */
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
	self = [super init];
	self.labelCode = [aDecoder decodeObjectForKey:kGetComPanyCultureCodeListLabelCode];
	self.labelName = [aDecoder decodeObjectForKey:kGetComPanyCultureCodeListLabelName];
	self.typeCode = [aDecoder decodeObjectForKey:kGetComPanyCultureCodeListTypeCode];
	return self;

}

/**
 * Implementation of NSCopying copyWithZone: method
 */
- (instancetype)copyWithZone:(NSZone *)zone
{
	GetComPanyCultureCodeList *copy = [GetComPanyCultureCodeList new];

	copy.labelCode = [self.labelCode copyWithZone:zone];
	copy.labelName = [self.labelName copyWithZone:zone];
	copy.typeCode = [self.typeCode copyWithZone:zone];

	return copy;
}
@end